package com.hg.datagovernance.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hg.datagovernance.entity.DataSource;
import com.hg.datagovernance.service.DataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class DataSourceController {

    @Autowired
    DataSourceService dataSourceService;

    @GetMapping("/data/source/{pageNum}/{pageSize}")
    public IPage<DataSource> getDataSource(@PathVariable Integer pageNum, @PathVariable Integer pageSize) {
        return dataSourceService.listDataSource(new Page<>(pageNum, pageSize));
    }

    @PostMapping("/data/source")
    public void postDataSource() {

    }

    @PutMapping("/data/source")
    public void putDataSource() {

    }

    @DeleteMapping("/data/source")
    public void deleteDataSource() {

    }
}
